import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _inherits from "@babel/runtime/helpers/esm/inherits";
import _createSuper from "@babel/runtime/helpers/esm/createSuper";

/* eslint-disable-next-line */
import React from 'react';
import { Route } from 'dva/router';

var WrapperRoute = /*#__PURE__*/function (_Route) {
  _inherits(WrapperRoute, _Route);

  var _super = _createSuper(WrapperRoute);

  function WrapperRoute() {
    _classCallCheck(this, WrapperRoute);

    return _super.apply(this, arguments);
  }

  _createClass(WrapperRoute, [{
    key: "shouldComponentUpdate",
    value: function shouldComponentUpdate(nextProps, nextState) {
      return !!nextState.match;
    }
  }]);

  return WrapperRoute;
}(Route);

export { WrapperRoute as default };